import { Component } from 'react';
import Tab from '../components/Tab'
import Header from '../components/Header'
class ToDoList extends Component {
    getTodo(data) {
        console.log(data)
    }
    render() {
        const arr = ['全部', '正在进行', "已经完成", "删除"]
        return (
            <div>
                <Header fn={this.getTodo}/>
                这是一个todolist
                <Tab list={arr}/>
            </div>
        )
    }
}

export default ToDoList